﻿using System.Runtime.Serialization;
using EasyComm.Base;
using EasyComm.Base.Hosting;

namespace EasyComm.ServiceUnit
{
    [DataContract]
    public class WorkerServiceUnit : DynamicServiceUnitBase
    {
        public WorkerServiceUnit(EasyCommServiceHostBase serviceHost)
            : base(serviceHost)
        {

        }

        public override string ToString()
        {
            return string.Format("[Worker Unit] Host: {0}, Port: {1}", Host, Port);
        }
    }
}
